package interfaz;

import java.awt.Graphics;
import java.awt.event.KeyEvent;

/*
 * iWidget.java
 *
 * Created on 22 de febrero de 2008, 17:58
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

/**
 *
 * @author victor
 */
public class iWidget {
    protected int width = 0;
    protected int height = 0;
    protected int x;
    protected int y;
    protected int numFrames; //numero de iteracions para a animacion
    protected int animation = -1; //tipo de animacion activada. -1 ningunha.
    
    /** Creates a new instance of iWidget */
    public iWidget(int x, int y) {
        setX(x);
        setY(y);
    }
    
    public void setWidth(int width) {
        this.width = width;
    }
    
    public void setHeight(int height) {
        this.height = height;
    }
    
    public int getWidth() {
        return this.width;
    }
    
    public int getHeight() {
        return this.height;
    }
    
    public void setX(int x) {
        this.x = x;
    }
    
    public void setY(int y) {
        this.y = y;
    }
    
    public int getX() {
        return this.x;
    }
    
    public int getY() {
        return this.y;
    }
    
    public void setNumFrames(int numFrames) {
        this.numFrames = numFrames;
    }
    
    public int getNumFrames() {
        return this.numFrames;
    }
    
    public void setAnimation(int status) {
        this.animation = status;
    }
    
    public int getAnimation() {
        return this.animation;
    }
    
    public void paint (Graphics g) {
    }
    
    public void keyPressed (KeyEvent e) {
    }
}
